<template>
	<view>
		<my-swiper-list ref="integralRecordList" :tabArray="tabArray" requestUrl="/poPhotoCreditReviewForm/list" typeName="reviewStatus" :requestParam={userId:userInfo.userId}>
			<template #SwiperList="{contentSwiperList}">
				<view class="content publicBox" v-for="(item,index1) in contentSwiperList" :key="index" @click="GoToPage(item.id)">
					<!-- 左边 -->
					<view class="left">
						<u-icon name="photo-fill" size="75" v-if="!getImgaeUrl(item.pictureRoute)"></u-icon>
						<image :src="getImgaeUrl(item.pictureRoute)" v-else></image>
					</view>
					<!-- 右边 -->
					<view class="right">
						<!-- 区域 -->
						<view class="activityName ellipsis beyond">{{param.title=='日常清洁'?item.regionName:item.equipmentPosition}}</view>
						<!-- 时间 -->
						<view class="startTime">{{item.time?(item.time.length==10?item.time+' 00:00:00':item.time):''}}</view>
						<!-- 说明 -->
						<view class="activityContent beyond towLines">{{item.patrolContent}}</view>
					</view>
				</view>
			</template>
		</my-swiper-list>
	</view>
</template>

<script>
	import {mapState} from 'vuex'
	export default {
		data() {
			return {
				tabArray:[
					{id:'0',name:'全部',content:[]},
					{id:'1',name:'待审核',content:[],reviewStatus:'0'},
					{id:'2',name:'已通过',content:[],reviewStatus:'1'},
					{id:'3',name:'不通过',content:[],reviewStatus:'2'},
				],
			};
		},
		computed:{
			...mapState('m_user',['userInfo']),
			setUrl(){
				return function(item){
					let array=JSON.parse(item.voucherPhoto)
					return array[0].url
				}
			}
		},
		onShow() {
			this.$refs.integralRecordList.getListData(false,true)
		}
	}
</script>

<style lang="scss">

</style>
